package kolekcje.eng.powtorka.bis;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class SzafaSetter {

	public static String[] songs = { "Pink Moon/Nick Drake/5/80",
			"Somersault/Zero 7/4/84", "Shiva Moon/Prem Joshua/6/120",
			"Circles/BT/5/110", "Deep Channel/Afro Celts/4/120",
			"Passenger/Headmix/4/100", "Listen/Tahiti 80/5/90",
			"Listen/Tahiti 80/5/90", "Listen/Tahiti 80/5/90" };

	public static File plik = new File("plikUtworow.txt");

	public static void main(String[] args) throws IOException {

		BufferedWriter bw = new BufferedWriter(new FileWriter(plik));
		for (int i = 0; i < songs.length; i++)
			bw.write(songs[i] + "\n");
		bw.close();

		BufferedReader br = new BufferedReader(new FileReader(plik));
		String s;
		while ((s = br.readLine()) != null)
			System.out.println(s);
		br.close();
	}

}
